package com.xbongbong.paas.model;


import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.FineClueCompanyEntity;

import java.util.List;

/**
 * @Author mingliang
 * @Description 精线索公司model
 **/
public interface FineClueCompanyModel extends IModel<FineClueCompanyEntity> {

    FineClueCompanyEntity getByCorpid(String corpid,Integer type);

    Integer autoincrementRegisterCount(FineClueCompanyEntity entity);

    Integer save(FineClueCompanyEntity entity) throws XbbException;

    /**
     * 获取所有的公司corpid
     *
     * @return
     */
    List<String> getCorpidList();

    /**
     * 根据套餐类型查公司
     *
     * @param type 套餐类型：1精线索，2工商查询
     * @return
     */
    List<String> getCorpidListWithType(int type);
}
